package cn.zhz.office.convert;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

/**
 * @author ZHZ
 * @since 2022-11-15
 */
@Slf4j
@SpringBootApplication
public class ConvertServer {
    public static void main(String[] args) {
        Environment env = new SpringApplication(ConvertServer.class).run(args).getEnvironment();
        log.info("" +
                        "\n----------------------------------------------------------\n" +
                        "\tApplication '{}' is running! Access URLs:\n" +
                        "\tLocal: \t\t\thttp://localhost:{}\n" +
                        "\tContext-Path: \t{}\n" +
                        "\tProfile(s): \t{}" +
                        "\n----------------------------------------------------------",
                env.getProperty("spring.application.name"),
                env.getProperty("server.port"),
                env.getProperty("server.servlet.context-path"),
                env.getActiveProfiles());
    }
}
